class UserFields < ActiveRecord::Migration
  def self.up
    remove_column :users, :type
    add_column :users, :name, :string
    add_column :users, :surname, :string
    add_column :users, :hourly_rate, :integer
    add_column :users, :is_admin, :boolean, :default => 1
  end

  def self.down
    add_column :users, :type, :string
    remove_column :users, :name
    remove_column :users, :surname
    remove_column :users, :hourly_rate
    remove_column :users, :is_admin

  end
end
